package tv.huan.tencent.task;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tv.huan.tencent.service.ICardPoolService;


/**
 * 卡池购买记录过期处理
 * 
 * @author ruoyi
 */
@Component("cardPoolRemainderTask")
public class CardPoolRemainderTask
{
    private static final Log logger = LogFactory.getLog(CardPoolRemainderTask.class);

    @Autowired
    private ICardPoolService cardPoolService;

    public void execute() {
        logger.info("卡池余量告警任务开始===================" );
        //余量告警邮件
        cardPoolService.checkCardPoolAndSendEmail();
    }

}
